// import request from '@/utils/request1'

// export const login = ({adminname,password})=>{
//   return request({
//     url:'admin/login',
//     method:'POST',
//     data:{
//       adminname,
//       password
//     }
//   })
// }

import request from '@/utils/request'

export function login(data) {
    return request({
        url: 'public/login',
        method: 'post',
        data
    })
}

export function getInfo(query) {
    return request({
        url: 'admin/detail',
        method: 'get',
        params: query
    })
}

export function logout(data) {
    return request({
        url: '/vue-admin-template/user/logout',
        method: 'post',
        data
    })
}